package com.qfedu.edu.slot.generate;

import com.qfedu.edu.slot.base.Ordered;
import com.qfedu.edu.slot.base.Slot;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xiaobobo
 * @title: GenerateSlot
 * @projectName cd-fy-2401-third-project-parent
 * @description: TODO
 * @date 2024/9/23  15:29
 */
public abstract class GenerateSlot implements Slot, Ordered,Comparable<GenerateSlot> {
    /**
     * 这个方法是通用的 要求是 数字越小越先执行...
     * @param o
     * @return
     */
    @Override
    public int compareTo(GenerateSlot o) {
        return this.getOrder()-o.getOrder();
    }
}
